package com.game.backend.controller.user.bot;

import com.game.backend.service.user.bot.AddService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
@RequestMapping("/user/bot")
public class AddController {
    @Autowired
    private AddService addService;

    @RequestMapping("/add")
    public Map<String,String> addBot(String title,String description,String content){
        return addService.add(title,description,content);
    }
}
